export default function (global, _) {
  global.insertStyle = function (code) {
    const style = document.createElement('style')
    if (style.styleSheet) {
      style.styleSheet.cssText = code
    } else {
      style.innerHTML = code
    }
    document.getElementsByTagName('head')[0].appendChild(style)
  }
}
